import React from "react";
import { useEffect } from "react";
import { useNavigate } from "react-router-dom";
function useSw() {
  const navigate = useNavigate();
  useEffect(() => {
    const token = localStorage.getItem("token");
    if (!token) {
      navigate("/login");
    }
  }, []);

  return <div></div>;
}

export default useSw;
